function exportToExecl() {
    //debugger;
    ExcelDiv.innerHTML = divReport.innerHTML;
    var obj, i;
    var iMaxCount = 100000;
    var strContent = ExcelTitleDiv.innerHTML + ExcelDiv.innerHTML;
    iMaxSeg = Math.round(strContent.length / iMaxCount) + 1;
    for (i = 0; i < iMaxSeg; i++) {
        obj = document.createElement("input");
        obj.name = "ExcelContent";
        obj.type = "hidden";
        obj.value = strContent.substring(i * iMaxCount, (i + 1) * iMaxCount);
        ExcelFrm.appendChild(obj);
    }
    ExcelFrm.submit();
    with (ExcelFrm) {
        for (var i = children.length - 1; i >= 0; i--)
            removeChild(children(i));
    }
}

function changeToPlainText(objTd) {
    for (var i = objTd.children.length - 1; i >= 0; i--)
        if (objTd.children(i).tagName == "A") {
            objTd.innerHTML = objTd.children(i).innerText;
            return;
        }
}
	
